﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Ema.Models.XtModel
{
    public class SubUserPwd
    {
        [DisplayName("原始密码")]
        [Required(ErrorMessage = "请输入密码")]
        [StringLength(18, ErrorMessage = "最多只能{1}个字")]
        public string Pwd { get; set; }

        [DisplayName("新密码")]
        [Required(ErrorMessage = "请输入密码")]
        [StringLength(18, ErrorMessage = "最多只能{1}个字")]
        public string Npwd { get; set; }

        [DisplayName("新密码2")]
        [Required(ErrorMessage = "请输入密码")]
        [Compare("Npwd")]
        public string Npwd2 { get; set; }
    }
}